local sock, err = ngx.req.socket()
if not sock then
    ngx.log(ngx.ERR, 'sock failed:', err)
end

local req, err = sock:receive()
if not req then
    ngx.log(ngx.ERR, 'receive failed:', err)
end
local bytes, err = sock:send('gun')
if not bytes then
    ngx.log(ngx.ERR, 'send failed:', err)
    return
end

ngx.log(ngx.INFO, 'http send bytes:', bytes)

ngx.log(ngx.INFO, req)